﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Vjezbe2
{
    public static class ExceptionHandler
    {
        public static bool Handle(Exception ex)
        {
            // U ovoj klasi se odlucuje koje tipove iznimaka
            // mozemo sami obraditi (npr poslati info useru ili administratoru).

            if (ex.GetType() == typeof(ArithmeticException))
                return false;

            if (ex.GetType() == typeof(TimeoutException))
                return true;

            // etc...
            return false;
        }
    }
}
